package com.huanghuai.retail.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
@Data
@ToString
@ApiModel(value="AddDeliverDto", description="新增送货人")
public class AddDeliverDto {
    /**
     * 姓名
     */
    @NotNull(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true)
    private String deliName;

    /**
     * 电话
     */
    @NotNull(message = "电话不能为空")
    @ApiModelProperty(value = "电话", required = true)
    private String deliPhone;

    /**
     * 银行账户
     */
    @NotNull(message = "银行账户不能为空")
    @ApiModelProperty(value = "银行账户", required = true)
    private String bankAcc;

    /**
     * 开户银行
     */
    @NotNull(message = "开户银行不能为空")
    @ApiModelProperty(value = "开户银行", required = true)
    private String openBank;

    /**
     * 地址id
     */
    @NotNull(message = "地址id不能为空")
    @ApiModelProperty(value = "地址id", required = true)
    private Long sailPlaceId;
}
